package com.example.demo.service;

import com.example.demo.mapper.UserMapper;
import com.example.demo.model.UserInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @description:
 * @author: myh1
 * @time: 2023/11/2 21:43
 */
@Service
public class UserService {
    @Resource
    private  UserMapper userMapper;
    public UserInfo getUserById(Integer id) {
        return  userMapper.getUserById(id);
    }
}
